package net.optix.ip.vo
{
	public class MatterVO
	{
		public var clientEmail:String;
		public var message:String;
		
		public var firmID:int;
		public var clientID:int;
		public var clientName:String;
		public var type:int;
		public var typeS:String	=	"";
		
		public var title:String;
		
		public static function purseMatter(value:XML):MatterVO
		{
			var matter:MatterVO	=	new MatterVO();
			
			try
			{
				matter.clientEmail	=	value.Email;
				matter.message		=	value.Message;
				matter.firmID		=	value.FirmID;
				
				matter.clientID		=	value.ClientID;
				matter.clientName	=	value.Business;
				matter.type			=	value.Type;
				
				switch(matter.type)
				{
					case 0:
						matter.typeS	=	"Invention";
						break;
					case 1:
						matter.typeS	=	"Trademark";
						break;
					case 2:
						matter.typeS	=	"Copyright";
						break;
				}
			}
			catch(error:Error){}
			
			return matter;
		}
	}
}